import { request } from '@/utils/request';
/**
 *获取账号管理数据
 */
export function findRmsUserPageListApi(data: any) {
    return request({
        url: '/rms/user/findRmsUserPageList',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}
/**
 *重置账号密码
 */
export function modifyPasswordApi(data: any) {
    return request({
        url: 'rms/user/modifyPassword',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}

/**
*新增用户
*/
export function insertRmsUserApi(data: any) {
    return request({
        url: '/rms/user/insertRmsUser',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}
/**
*查询角色详细
*/
export function listRoleApi(data: any) {
    return request({
        url: 'rms/role/listRole',
        method: 'post',
        data,
    });
}
/**
*编辑用户 删除账号
*/
export function modifyRmsUserApi(data: any) {
    return request({
        url: '/rms/user/modifyRmsUser',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}


/**
 *获取机构管理数据
 */
export function findRmsOrganizationPageListApi(data: any) {
    return request({
        url: '/rms/organization/findRmsOrganizationPageList',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}



/**
*编辑机构
*/
export function insertRmsOrganizationApi(data: any) {
    return request({
        url: '/rms/organization/insertRmsOrganization',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}

/**
*编辑机构
*/
export function modifyRmsOrganizationApi(data: any) {
    return request({
        url: '/rms/organization/modifyRmsOrganization',
        method: 'post',
        data,
    },
        {
            isDataDirectly: false,
        });
}